package org.chenbingkang.nacos;

import com.alibaba.nacos.api.NacosFactory;
import com.alibaba.nacos.api.config.ConfigService;
import com.alibaba.nacos.api.exception.NacosException;

import java.util.Properties;

public class ConfigShutDown {
    public static void main(String ... args){
        try {
            String serverAddr = "192.168.180.128:8848,192.168.180.128:8849,192.168.180.128:8850";
            String dataId = "ent-web";
            String group = "local";
            Properties properties = new Properties();
            properties.put("serverAddr", serverAddr);
            ConfigService configService = NacosFactory.createConfigService(properties);
            System.out.println(configService.getServerStatus());
        } catch (NacosException e) {
            e.printStackTrace();
        }
    }
}
